package com.tzx.fluttermixedapplication.net.api

import com.tzx.fluttermixedapplication.beans.WeatherWithCity
import com.tzx.fluttermixedapplication.net.RepositoryFactory

object VVHApiServiceImpl : IApiService {
    private val iVVHApiService = RepositoryFactory.VVH.createApiService(IVVHApiService::class.java)
    suspend fun getWeatherWithCity(cityName: String): Result<WeatherWithCity?> = runNetWorkAction {
        iVVHApiService.getWeatherWithCity(cityName)
    }
}